#ifndef CHECKBOARD_H
#define CHECKBOARD_H
#include <opencv/cv.h>
#include <QImage>

class CheckBoard
{
public:
	CheckBoard (int rows, int cols, float size);
	~CheckBoard ();

	const std::vector< cv::Point3f >& getCorners () const;
	int getRows () const;
	int getCols () const;
	int getCornersCount () const;
	int getDepthSegs () const;
	float getBlockSize () const;

	std::vector< cv::Point2f > findCheckBoard (const QImage& img, bool& outisFound);
	void fillDepthSegs (std::vector< cv::Point3f >& io_points);

private:
	std::vector< cv::Point3f > _corners;
	float _blockSize;
	int _rows;
	int _cols;
	int _depthSegs;

};

#endif // CHECKBOARD_H
